<template>
  <el-row type="flex" style="width:100%">
    <el-col>{{ data.name }}</el-col>
    <el-col>
      <el-row type="flex" justify="end">
        {{ data.manager }}
        <el-dropdown>
          <span class="el-dropdown-link">操作<i class="el-icon-arrow-down el-icon--right"></i></span>
          <el-dropdown-menu slot="dropdown">
            <slot></slot>
          </el-dropdown-menu>
        </el-dropdown>
      </el-row>
    </el-col>
  </el-row>
</template>

<script>
export default {
  name: 'TreeNode',
  props: {
    // 接收父组件传过来的数据
    data: {
      type: Object,
      // default: () => ({})
      required: true
    }
  }
}
</script>

<style scoped lang="scss">
.el-dropdown {
  margin-left: 10px;
}
</style>
